/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.apache.http.examples.client;

import java.io.IOException;
import java.text.ParseException;

/**
 *
 * @author ADMIN
 */
public class Main {

public static void main(String[] args) throws IOException, InterruptedException, ParseException {
      /*  String year = "2012_2013";
        String[] urlBXH  =  {
                "http://bongda24h.vn/bong-da-anh/bang-xep-hang-1.html",
                "http://bongda24h.vn/bong-da-italia/bang-xep-hang-3.html",
                "http://bongda24h.vn/bong-da-tay-ban-nha/bang-xep-hang-5.html",
                "http://bongda24h.vn/bong-da-duc/bang-xep-hang-4.html",
                "http://bongda24h.vn/vdqg-ha-lan/bang-xep-hang-14.html",
                "http://bongda24h.vn/vdqg-bo-dao-nha/bang-xep-hang-19.html",
                "http://bongda24h.vn/vdqg-scotland/bang-xep-hang-20.html",
                "http://bongda24h.vn/vdqg-bi/bang-xep-hang-21.html",
                "http://bongda24h.vn/vdqg-nga/bang-xep-hang-15.html",
        };
        
        
        Test.getBXH("http://bongda24h.vn/bong-da-tay-ban-nha/bang-xep-hang-5.html", "ISO-8859-1,utf-8",year);
        */
        while(true){
                //Test test = new Test();
                for(int i = 1; i <= 80; i++)
                {
                    if((i == 1)||(i == 2)||(i == 3)||(i == 4)||(i == 5)||(i == 8)||(i == 9)||(i == 10)||(i == 55)||(i == 20)||(i == 21)||(i == 30)||(i == 12)||(i == 6)||(i == 11)||(i == 7)||(i == 58)||(i == 60)||(i == 61)||(i == 66)||(i == 74)||(i == 72))
                    //if((i == 3))
                    {
                        try {
                            //URL my_url = new URL("http://w2.sut.vn/ty-le-ca-cuoc-bong-da.aspx?league="+i);
                            //URL my_url = new URL("http://go47.com/ty-le-ca-cuoc-bong-da.asp?league="+i);
                            Debug.println("http://www.asianbookie.com/index.cfm?league="+i+"&tz=7");
                            Test.getUrl("http://www.asianbookie.com/index.cfm?league="+i+"&tz=7", "ISO-8859-1,utf-8",i);
                            //System.out.println(result);
                         } catch (Exception ex) {
                            System.out.println(ex.getMessage());
                            Debug.println(ex.getMessage());
                        }

                    }
                }
            Thread.sleep(40*60*1000);
        }

    }
}
